﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace A2DFramework.PipelineEngine
{
    public static class Pipeline
    {
        public static Pipeline<TIN, TOUT> Wrap<TIN, TOUT>(Func<TIN, TOUT> method)
        {
            Pipeline<TIN, TOUT> p = new Pipeline<TIN, TOUT>(method);
            return p;
        }

        public static Pipeline<TIN1, TIN2, TOUT> Wrap<TIN1, TIN2, TOUT>(Func<TIN1, TIN2, TOUT> method)
        {
            Pipeline<TIN1, TIN2, TOUT> p = new Pipeline<TIN1, TIN2, TOUT>(method);
            return p;
        }
    }
}
